import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';
import 'package:mtf/app/theme/app_theme.dart';
import 'package:mtf/app/utils/cache/AppCahche.dart';

import 'app/routes/app_pages.dart';

void main() async {
  runApp(const MyApp());
  SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor:Colors.transparent);
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  AppCache.init();
  FlutterSmartDialog.init();
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return  GetMaterialApp(getPages: AppPages.pages,builder: FlutterSmartDialog.init(),debugShowCheckedModeBanner: false,theme: appThemeData,);
  }


}



